package com.itshizhan.designpattern.abstract_factory.factory;

import java.util.ArrayList;
/**
 * 抽象零件
 * 表示含有Link和Tray类
 * Tray 有托盘的意思
 */
public abstract class Tray extends Item{
    protected ArrayList tray = new ArrayList();
    public Tray(String caption) {
        super(caption);
    }
    public void add(Item item){
        tray.add(item);
    }
}
